import service from '@/utils/request'

export const createUdsTb = (data) => {
  return service({
    url: '/udsTb/createUdsTb',
    method: 'post',
    data
  })
}

export const deleteUdsTb = (data) => {
  return service({
    url: '/udsTb/deleteUdsTb',
    method: 'delete',
    data
  })
}

export const deleteUdsTbByIds = (data) => {
  return service({
    url: '/udsTb/deleteUdsTbByIds',
    method: 'delete',
    data
  })
}

export const updateUdsTb = (data) => {
  return service({
    url: '/udsTb/updateUdsTb',
    method: 'put',
    data
  })
}

export const findUdsTb = (params) => {
  return service({
    url: '/udsTb/findUdsTb',
    method: 'get',
    params
  })
}

export const getUdsTbList = (params) => {
  return service({
    url: '/udsTb/getUdsTbList',
    method: 'get',
    params
  })
}

export const getAllUdsTbs = (params) => {
  return service({
    url: '/udsTb/getAllUdsTbs',
    method: 'get',
    params
  })
}

export const getUdsTb = (data) => {
  return service({
    url: '/udsTb/getUdsTb',
    method: 'post',
    data
  })
}


export const initUdsTb = () => {
  return service({
    url: '/udsTb/initUdsTb',
    method: 'get',
  })
}
